package com.example.demo.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.common.JsonResult;
import com.example.demo.entity.EmployeeEntity;
import com.example.demo.service.EmployeeHWLService;

@RestController
public class EmployeeHWLController {

	@Resource
	private EmployeeHWLService employeehwlService;

	/**
	 * 
	 * @param number
	 * @return JsonResult
	 */

	@GetMapping("/bff/employeeInfo/{number}")
	public JsonResult selectByNumber(@PathVariable String number) {
		EmployeeEntity employee = employeehwlService.selectByNumber(number);
		return JsonResult.success(employee);
	}

	public JsonResult selectByNumber(EmployeeEntity employee) {
		// TODO Auto-generated method stub
		return null;
	}

}
